﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Pay.TO;

namespace Pay.Data {
    /// <summary>
	/// 社区帖子表 mc_Article
	/// </summary>
	[Serializable]
    public class Article {
        /// <summary>
        /// 帖子Id
        /// </summary>
        public long Id { get; set; }

        /// <summary>
        /// 用户Id
        /// </summary>
        public long MerchantId { get; set; }

        /// <summary>
        /// 标题
        /// </summary>
        public string Title { get; set; }

        /// <summary>
        /// 图片Url
        /// </summary>
        public string ImgUrl { get; set; }

        /// <summary>
        /// 帖子内容
        /// </summary>
        public string Description { get; set; }

        /// <summary>
        /// 状态（枚举）
        /// </summary>
        public ArticleStatus Status { get; set; }

        /// <summary>
        /// 是否置顶 0未置顶 1已置顶
        /// </summary>
        public bool IsTop { get; set; }

        /// <summary>
        /// 是否加精品栏 0否 1是
        /// </summary>
        public bool IsHighLight { get; set; }

        /// <summary>
        /// 回复数
        /// </summary>
        public int ReplyNum { get; set; }

        /// <summary>
        /// 点击数
        /// </summary>
        public int ClickNum { get; set; }

        /// <summary>
        /// 排序
        /// </summary>
        public int Sort { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public long CreateTime { get; set; }
        /// <summary>
        /// 更新时间
        /// </summary>
        public long UpdateTime { get; set; }
        /// <summary>
        /// 0 帖子 1 帮助中心
        /// </summary>
        public int Type { get; set; }

        /// <summary>
        /// 商户
        /// </summary>
        public virtual Merchant Merchant { get; set; }

        /// <summary>
        /// 帖子回复表：mc_ReplyArticle
        /// </summary>
        public virtual ICollection<ReplyArticle> ReplyArticles { get; set; }
    }
}
